# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=encodings
pkgver=1.0.5
pkgrel=0
pkgdesc="X.org font encoding files"
url="http://xorg.freedesktop.org/"
arch="noarch"
license="custom"
options="!check"  # No test suite.
makedepends="mkfontscale util-macros"
source="https://www.x.org/releases/individual/font/encodings-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-encodingsdir=/usr/share/fonts/encodings
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="920e49f0b3545f181a1574ca3280ac9adef1e68fe27566c195dd7013f728d355c0d759132789357fcf8fa7391fcbe1e17edf2bd85aa5611df5a4d99740011008  encodings-1.0.5.tar.bz2"
